package com.wyw.demo.common;

import lombok.extern.slf4j.Slf4j;
import org.springframework.util.ErrorHandler;

/**
 * 异常处理
 *
 * @Author Mr Wu yewen.wu.china@gmail.com
 * @Date 2023/2/27 17:10
 */
@Slf4j
public class StreamErrorHandler implements ErrorHandler {

    @Override
    public void handleError(Throwable t) {
        log.error("stream异常：{}", t);
    }
}
